import request from '@/utils/request'

// 查询店铺退货记录表列表
export function listReturns(query) {
  return request({
    url: '/sale/returns/list',
    method: 'get',
    params: query
  })
}

// 查询店铺退货记录表详细
export function getReturns(id) {
  return request({
    url: '/sale/returns/' + id,
    method: 'get'
  })
}

// 新增店铺退货记录表
export function addReturns(data) {
  return request({
    url: '/sale/returns',
    method: 'post',
    data: data
  })
}

// 修改店铺退货记录表
export function updateReturns(data) {
  return request({
    url: '/sale/returns',
    method: 'put',
    data: data
  })
}

// 删除店铺退货记录表
export function delReturns(id) {
  return request({
    url: '/sale/returns/' + id,
    method: 'delete'
  })
}
